package com.jdbc.dao;

import com.jdbc.pojo.Account;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface AccountDao {
    //添加记录
    int addAccount(Account account);
    //按id修改记录
    int updateAccountById(Account account);
    //按id修改存款金额
    int updateBalanceById(int id,double balance);
    //按id删除记录
    int deleteAccountById(int id);

    //按id查询account
    Account findById(int id);
    //查询所有
    List<Account> findAll();


}
